import unittest
import warnings
import user_data
from create_data.create_test_data import set_up_and_login, release_item, Ting
from net_project_tools.PageTing import NetTingPage


class NetTing(unittest.TestCase):
    def setUp(self):
        warnings.simplefilter('ignore', ResourceWarning)
        dr = set_up_and_login(user_data.project_admin)
        Ting(dr)
        dr.quit()

    def tearDown(self):
        self.page.logout()

    def page(self):
        self.page=NetTingPage()
        self.page.login(*user_data.student1)
        self.page.enter_project()
        self.page.enter_tools('听评课')
        self.page.submit_Ting()  # 6s




if __name__ == '__main__':
    unittest.main()

